package day07;

public class txt5 {
    public static void main(String[] args) {
        String s="yangtao";
        int a=s.indexOf("a");
        System.out.println(a);

        int a2=s.indexOf('a');
        System.out.println(a2);

        int a1=s.lastIndexOf("a");
        System.out.println(a1);
    }
}
